package com.nuc.workflowserver.model.pojo;

import com.nuc.workflowserver.common.model.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户信息表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserInfo extends BaseEntity {

    @ApiModelProperty("用户信息id")
    private String id;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("用户名称")
    private String username;

    @ApiModelProperty("用户住址")
    private String addr;

    @ApiModelProperty("电话号码")
    private String phone;

    @ApiModelProperty("性别 1男 2女 ")
    private String sex;

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("所属生产线id")
    private String flowId;

    @ApiModelProperty("是否有效 1 true ,0 false")
    private Boolean valid;

    @ApiModelProperty("爱好，多选，用逗号拼 1读书 2爬山 3跑步 4篮球")
    private String hobby;

    @ApiModelProperty("自我介绍")
    private String selfinfo;

    public UserInfo(String id) {
        this.id = id;
    }
}
